package com.lyf.shop.entity;

import java.util.Date;
import java.io.Serializable;

/**
 * (Product)实体类
 *
 * @author makejava
 * @since 2021-11-30 15:56:29
 */
public class Product implements Serializable {
    private static final long serialVersionUID = 430830971318823617L;
    
    private Integer pid;
    
    private String pname;
    
    private Double price;
    
    private String photo;
    
    private Integer inventory;
    
    private Date updateTime;
    
    private String detail;



    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public Integer getInventory() {
        return inventory;
    }

    public void setInventory(Integer inventory) {
        this.inventory = inventory;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    @Override
    public String toString() {
        return "Product{" +
                "pid=" + pid +
                ", pname='" + pname + '\'' +
                ", price=" + price +
                ", photo='" + photo + '\'' +
                ", inventory=" + inventory +
                ", updateTime=" + updateTime +
                ", detail='" + detail + '\'' +
                '}';
    }
}